﻿using System;
using NUnit.Framework;

namespace Minesweeper.Test {

    [TestFixture]
    public class ErzeugeErweitertesMinenfeld {

        [Test]
        public void ErzeugeMinenfeld() {

            string[,] minenfeld = 
            {
            {" ", " ", " ", " "},
            {" ", "*", " ", " "},
            {" ", " ", " ", " "},
            {"*", " ", " ", "*"},
            {" ", "*", " ", " "}
            };

            var sut = new Minesweeper();
            sut.ErzeugeMogelzettel(minenfeld);

            Assert.AreEqual(" ", sut.Minenfeld[1, 1]);
            Assert.AreEqual("*", sut.Minenfeld[2, 2]);
            Assert.AreEqual("*", sut.Minenfeld[4, 1]);
            Assert.AreEqual("*", sut.Minenfeld[4, 4]);
            Assert.AreEqual("*", sut.Minenfeld[5, 2]);

                   
        }
    }

}
